import SwiftUI

struct MainTabView: View {
    @State private var selectedTab = 0
    
    var body: some View {
        TabView(selection: $selectedTab) {
            CultivationHomeView()
                .tabItem {
                    Image(systemName: "house.fill")
                    Text("修炼")
                }
                .tag(0)
            
            ExploreView()
                .tabItem {
                    Image(systemName: "magnifyingglass")
                    Text("发现")
                }
                .tag(1)
            
            CreateView()
                .tabItem {
                    Image(systemName: "plus.circle.fill")
                    Text("创建")
                }
                .tag(2)
            
            KnowledgeBaseView()
                .tabItem {
                    Image(systemName: "cube.fill")
                    Text("知识库")
                }
                .tag(3)
        }
    }
}

